<% @main_header = "#{link_to('Ptrack:', '/')} #{Task.find(params[:task_id]).name}" " :Task Status History" %>
<!--<h1>Listing Task Status History</h1>-->
<div class="span-21">
  <table>
    <tr>
      <th>Status changed to</th>
      <th>by</th>
      <th>at</th>
      <th>reason</th>
      
    </tr>
    <% for task_status_history in @task_status_histories %>
      <tr>
        <td><%=h task_status_history.changed_to %></td>
        <td><%=h User.find(task_status_history.user_id).login %></td>
        <td><%=h task_status_history.updated_at.strftime('%d %b %Y') %></td>
        <td><%=h task_status_history.description %></td>
        <!--<td>
          &nbsp;
          <%#= link_to 'Show', task_status_history %>
          <%#= link_to 'Edit', edit_task_status_history_path(task_status_history) %>
          <%#= link_to 'Destroy', task_status_history, :confirm => 'Are you sure?',
          :method => :delete %>
        </td>-->
      </tr>
    <% end %>
  </table>
  <br/>
  <%=link_to 'Back' , :back %>,
  <%#= link_to 'New task_status_history', new_task_status_history_path %>
</div>